import { request } from '@/utils/request';

// 佣金列表
export function providerCommissiongetProviderCommissionListApp(data) {
  return request(
    {
      url: '/providerCommission/getProviderCommissionListApp',
      method: 'POST',
      data
    },
    { toast: false }
  );
}

// 佣金列表数量
export function providerCommissiongetProviderCommissionCount(data) {
  return request(
    {
      url: '/providerCommission/getProviderCommissionCount',
      method: 'POST',
      data
    },
    { loading: false, toast: false }
  );
}

// 提现账户列表
export function withdrawalAccountgetWithdrawAccount(data) {
  return request(
    {
      url: '/withdrawalAccount/getWithdrawAccount',
      method: 'POST',
      data
    },
    { toast: false }
  );
}

// 新增提现账户
export function withdrawalAccountaddOrUpdateWithdrawAccountApp(data) {
  return request({
    url: '/withdrawalAccount/addOrUpdateWithdrawAccountApp',
    method: 'POST',
    data
  });
}

// 删除提现账户
export function withdrawalAccountdelWithdrawAccountApp(data) {
  return request({
    url: '/withdrawalAccount/delWithdrawAccountApp',
    method: 'POST',
    data
  });
}

// 发起提现
export function withdrawalRecordaddWithdrawApprove(data) {
  return request({
    url: '/withdrawalRecord/addWithdrawApprove',
    method: 'POST',
    data
  });
}

// 提现记录
export function withdrawalRecordgetWithdrawalRecordPageApp(data) {
  return request(
    {
      url: '/withdrawalRecord/getWithdrawalRecordPageApp',
      method: 'POST',
      data
    },
    { toast: false }
  );
}

// 提现详情
export function withdrawalRecordgetWithdrawalRecordDetail(data) {
  return request(
    {
      url: '/withdrawalRecord/getWithdrawalRecordDetail',
      method: 'POST',
      data
    },
    { toast: false }
  );
}
